home *** CD-ROM | disk | FTP | other *** search
- Path: pegasus.montclair.edu!harmon
- From: harmon@pegasus.montclair.edu (Derek Harmon)
- Newsgroups: comp.lang.c
- Subject: Re: (VOID *) Problems
- Date: 14 Feb 1996 02:00:01 -0500
- Organization: Montclair State University
- Message-ID: <harmon.824280714@pegasus.montclair.edu>
- References: <3120F9B8.167E@pangea.stanford.edu> <fcusack-1302961720420001@mudskipper.cac.psu.edu>
- NNTP-Posting-Host: pegasus.montclair.edu
- X-Newsreader: NN version 6.5.0 #68 (NOV)
-
- fcusack@tdx.org (frank.) writes:
- >> z = (double *)p; /* problems. I also tried other
- >> cast forms. */
- > ^^^^^^^^^^^
-
- >here you try to assign a double * to z, which does not match z's type.
-
- >Try z = &p; /* or z = &(double *) p; /* but the cast is not really needed */
-
- So, as you were saying, assigning a double * to z.. which doesn't match
- z's type. >%) Perhaps you mean something like,
-
- z = *p; /* or z = *(double *)p; */
- -- Stone
- --
- # Derek Harmon (aka Stonelight) harmon@pegasus.montclair.edu
- # - Computer Science Undergrad, Montclair State University, NJ
- # - My views are my own, nobody else is this creative. 3;)>
- ... Wascally Wabbits, Inc. All Wights Weswerved.
-
-